Website powered by

UNITY HLSL lit Glass Surface Shader

🧊 Unity HLSL Lit Glass Surface Shader
Wanted to get the similar results with the previously done unlit glass shader using surface shader.
Still using GrabPass for capturing background and distorting it using a normal map to simulate glass refraction.
We can create many interesting and cool results using different normal maps and cubemaps.
Tried to make the shader as modular as possible to extend its usability.
Kindly share any thoughts or Insights that would help me learn better.

Showcasing shader properties

Example 01

Example 01

Example 02 with texture

Example 02 with texture

Example 03

Example 03

Example 04

Example 04

Example 05

Example 05

Shader Properties

Shader Properties